package models;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.db.jpa.GenericModel;

/**
 * The persistent class for the USERINFO database table.
 * 
 */
@Entity
@Table(name = "userinfo")
public class Userinfo extends GenericModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public long id;

	@Column(nullable = false, length = 10)
	public String code;

	@Column(length = 20)
	public String cardno;

	@Column(nullable = false, precision = 10)
	public Long createby;

	@Column(precision = 6, scale = 4)
	public BigDecimal ticketdiscount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(nullable = false)
	public Date createtime;

	@Column(length = 50)
	public String email;

	@Column(length = 20)
	public String idcard;

	@Column(nullable = false, precision = 1)
	public Boolean islock;

	@Column(nullable = false, precision = 0)
	public Boolean isactive;

	@Column(nullable = false, precision = 1)
	public Boolean ismultipoint;

	@Column(nullable = false, length = 20)
	public String name;

	@Column(nullable = false, precision = 10)
	public Long orgid;

	@Column(nullable = false, length = 50)
	public String password;

	@Column(length = 20)
	public String phone;

	@Column(precision = 10)
	public Long updateby;

	@Temporal(TemporalType.TIMESTAMP)
	public Date updatetime;

}